﻿<a href='@Url.Action("ProfileView", "Profile", new { id = ViewBag.UserPostedId})' class="nobtn">
    @ViewBag.UserPostedFullname
</a>

@if(ViewBag.BaseSubjectType == "group")
{
    <a href='@Url.Action("GroupDetails", "Group", new { id = ViewBag.SubjectId, postId = ViewBag.PostId})' class="nobtn">
        posted
    </a>
}
@if (ViewBag.BaseSubjectType == "event")
{
    <a href='@Url.Action("EventDetails", "Event", new { id = ViewBag.SubjectId, postId = ViewBag.PostId })' class="nobtn">
        posted
    </a>
}
@if (ViewBag.BaseSubjectType == "page")
{
    <a href='@Url.Action("PageDetails", "Page", new { id = ViewBag.SubjectId, postId = ViewBag.PostId })' class="nobtn">
        posted
    </a>
}

on
@if(ViewBag.BaseSubjectType == "group")
{
    @:group 
    <a href='@Url.Action("GroupDetails", "Group", new { id = ViewBag.SubjectId})' class="nobtn">
        @ViewBag.SubjectFullname
    </a>
}
@if (ViewBag.BaseSubjectType == "event")
{
    @:event
    <a href='@Url.Action("EventDetails", "Event", new { id = ViewBag.SubjectId})' class="nobtn">
        @ViewBag.SubjectFullname
    </a>
}
@if (ViewBag.BaseSubjectType == "page")
{
    @:page
    <a href='@Url.Action("PageDetails", "Page", new { id = ViewBag.SubjectId})' class="nobtn">
        @ViewBag.SubjectFullname
    </a>
}